package SimpleDateFormat;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Main {
    public static void main(String[] args) {
        Date date = new Date();
        System.out.println(date);

        //1.格式化时间
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy年MM月dd日  HH:mm:ss EEE a");
        String rs = simpleDateFormat.format(date);
        System.out.println(rs);

        //2.格式化时间毫秒值
        long time = date.getTime();
        time += 121*1000;
        System.out.println(simpleDateFormat.format(time));


    }
}
